﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AttributeDoem
{
    /// <summary>
    /// 返回备注特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Field, AllowMultiple = true, Inherited = true)]
    public class RemarkAttribute : Attribute
    {
        /// <summary>
        /// 创建容器存储
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 构造函数给容器赋值
        /// </summary>
        /// <param name="remark"></param>
        public RemarkAttribute(string remark)
        {
            this.remark = remark;
        }

        /// <summary>
        /// 返回容器内容
        /// </summary>
        /// <returns></returns>
        public string GetRemark()
        {
            return this.remark;
        }
    }
}
